<?php


namespace app\model;


use app\utils\DateTime;

class DepositStatus extends BaseModel
{
    private $DateTime;

    public function __construct(array $data = [])
    {
        $this->DateTime = new DateTime();
        parent::__construct($data);
    }

    public function PayOrder(){
        return $this->belongsTo(PayOrder::class , 'id' , 'pay_id');
    }

    public function getGetTimeAttr($value){
        return $this->DateTime->getTime($value);
    }
}
